local zong__zhanyi = fk.CreateSkill {
  name = "zong__zhanyi",
  tags = {Skill.Compulsory},
}

Fk:loadTranslationTable{
  ["zong__zhanyi"] = "战遗",
  [":zong__zhanyi"] = "锁定技，当你成为【桃】的目标后，你弃置一张手牌。",
}

zong__zhanyi:addEffect(fk.TargetConfirmed, {
  anim_type = "discard",
  
  can_trigger = function(self, event, target, player, data)
    return target == player
      and player:hasSkill(zong__zhanyi.name)
      and data.card.trueName == "peach"
  end,

  on_use = function(self, event, target, player, data)
    local room = player.room
    room:askToDiscard(player, {
      skill_name = zong__zhanyi.name,
      cancelable = false,
      min_num = 1,
      max_num = 1,
      include_equip = false,
      })
  end,
})

return zong__zhanyi